package com.learn.order.rest.api;

import java.util.Date;

import org.apache.commons.lang3.time.DateFormatUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class SendMessageController {

	@Autowired
	// private StreamClient streamClient;

	@GetMapping("sendMessage")
	public void process() {
		@SuppressWarnings("unused")
		String time = DateFormatUtils.format(new Date(), "yyyy-MM-dd HH:mm:ss");
		// streamClient.myoutput().send(MessageBuilder.withPayload(time).build());
	}
}
